package com.atguigu.day18.generic03;

import org.junit.Test;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/22 14:29
 * @注释
 */
public class StudentTest {
    @Test
    public void test01(){
        Student<Character> s1 = new Student("张三",'A');
        Student<String> s2 = new Student("张三","优秀");
        Student<Integer> s3 = new Student("张三",99.5);

        System.out.println("s1 = " + s1);
        System.out.println("s2 = " + s2);
        System.out.println("s3 = " + s3);
    }
}
